#!/usr/bin/env python
#  -*- coding: utf-8 -*-
__author__ = 'yinq'

lucky_num = 10
guess_num = 0

while guess_num < 3:
    print("guess_num:", guess_num)
    input_num = int(input("Input your num:"))
    if input_num > lucky_num:
        print("the real number is smaller!")
    elif input_num < lucky_num:
        print("the real number is bigger!")
    else:
        print("Bingo!")
        break
    guess_num += 1

else:
    print("too many retreys!")
